package com.ruoyi.system.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.AppDynamicComment;
import com.ruoyi.system.domain.AppDynamicLike;

/**
 * 评论Mapper接口
 *
 * @author ruoyi
 * @date 2023-02-27
 */
public interface AppDynamicCommentMapper extends BaseMapper<AppDynamicComment> {
    /**
     * 查询评论
     *
     * @param id 评论主键
     * @return 评论
     */
    public AppDynamicComment selectAppDynamicCommentById(Long id);

    /**
     * 查询评论列表
     *
     * @param appDynamicComment 评论
     * @return 评论集合
     */
    public List<AppDynamicComment> selectAppDynamicCommentList(AppDynamicComment appDynamicComment);

    /**
     * 新增评论
     *
     * @param appDynamicComment 评论
     * @return 结果
     */
    public int insertAppDynamicComment(AppDynamicComment appDynamicComment);

    /**
     * 修改评论
     *
     * @param appDynamicComment 评论
     * @return 结果
     */
    public int updateAppDynamicComment(AppDynamicComment appDynamicComment);

    /**
     * 删除评论
     *
     * @param id 评论主键
     * @return 结果
     */
    public int deleteAppDynamicCommentById(Long id);

    /**
     * 批量删除评论
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAppDynamicCommentByIds(Long[] ids);

    List<AppDynamicComment> selectAppDynamicCommentList2(AppDynamicComment appDynamicComment);
}
